<?php 
$baseUrl = $this->baseUrl();
?>
<table border="1">
	<tr>
		<td>Ação</td>
		<td>Produto</td>
		<td>Qtd. Comprada</td>
		<td>Qtd. Vendida</td>
		<td>Vlr. Unitário</td>
		<td>Vlr. Total</td>
		<td>Vlr. Unitário para venda</td>
	</tr>
<?php 
	if ($this->rowSet->count()):
		foreach ($this->rowSet as $row):
?>	
			<tr>
				<td>
					[<a href="<?php echo $baseUrl . '/estoque/update/id/' . $row->id_estoque?>">Editar</a>]
					&nbsp;&nbsp;
					[<a href="<?php echo $baseUrl; ?>/estoque/excluir/id/' . $row->id_estoque">Excluir</a>]
				</td>
				<td>N/A</td>
				<td><?php echo $row->nr_qtdcompra; ?></td>
				<td><?php echo $row->nr_qtdvenda; ?></td>
				<td><?php echo $row->nr_vlrunit; ?></td>
				<td><?php echo $row->nr_vlrtotal; ?></td>
				<td><?php echo $row->nr_vlrunitvenda; ?></td>
			</tr>
<?php 
		endforeach;
	else:
?>	
			<tr>
				<td colspan="6">Não foram encontrados registros.</td>
			</tr>
<?php 
	endif;
?>	
</table>